package com.a2j.beans.user;

import com.a2j.beans.base.BaseUser;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * Author: bzb
 * Data: 2021/10/19 23:05
 * Desc: 系统用户实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SuperBuilder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "系统用户信息")
public class SysUser extends BaseUser {

    @ApiModelProperty(value = "所属部门ID")
    private Integer departmentId; // 所属部门ID

    @ApiModelProperty(value = "用户类型（管理、编辑、查看、演示）")
    private Integer sysType; // 用户类型（管理、编辑、查看、演示）

    @ApiModelProperty(value = "备注")
    // 属性为NUll时不返回到json数据中
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String remark; // 备注

    @ApiModelProperty(value = "IP地址")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String ip; // IP地址

    @ApiModelProperty(value = "Mac地址")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String mac; // Mac地址
}